package com.wmh.baseservice.merchant.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wmh.baseservice.merchant.pojo.MerchantVegetable;
import com.wmh.baseservice.common.mybatisplus.methods.CommonService;
import com.wmh.baseservice.user.pojo.UsShopCar;
import com.wmh.baseservice.user.pojo.vo.VegetableSearch;

import java.util.List;
import java.util.Map;

/**
 * @author wmh generator
 * @since 2021-12-24
 */
public interface MerchantVegetableService extends CommonService<MerchantVegetable> {

    /**
     * 获取蔬菜列表（分页）
     * @param vegetablePage
     * @param map
     */
    IPage<MerchantVegetable> getVegetableList(Page<MerchantVegetable> vegetablePage, Map<String, Object> map);

    /**
     * 删除果蔬
     */
    void delete(MerchantVegetable merchantVegetable);

    /**
     * 购物车提交订单
     */
    String batchSubOrder(List<UsShopCar> usShopCarList, String remark, Integer hasTake);

    IPage<VegetableSearch> search(Page<VegetableSearch> vegetablePage, Map<String, Object> map);
}
